package com.shiyingzi.security.model;

import java.util.Arrays;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.shiyingzi.basics.model.BasicsEntity;


//@Entity
//@Table(name = "user")
//@Where(clause = "delete_flag='N'")
@TableName("user")
public class User extends BasicsEntity{

	private static final long serialVersionUID = -4876487807738266198L;
	
//	@Column(name = "user_name", columnDefinition = "varchar(500) comment '用户名称'")
	@TableField(value = "user_name")
	private String userName;
	
//	@Column(name = "user_accout", columnDefinition = "varchar(15) comment '用户账号'")
	@TableField(value = "user_accout")
	private String userAccout;

//	@Column(name = "user_password", columnDefinition = "varchar(50) comment '用户密码'")
	@TableField(value = "user_password")
	private String userPassword;
	
//	@Column(name = "user_phone", columnDefinition = "varchar(15) comment '用户电话'")
	@TableField(value = "user_phone")
	private String userPhone;
	
//	@Column(name = "user_id_number", columnDefinition = "varchar(50) comment '身份证号'")
	@TableField(value = "user_id_number")
	private String userIDNumber;
	
//	@Column(name = "user_status", columnDefinition = "varchar(50) comment '1启用，2停用'")
	@TableField(value = "user_status")
	private String userStatus;
	
//	@Transient
	@TableField(exist=false)
	private String[] roles;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAccout() {
		return userAccout;
	}

	public void setUserAccout(String userAccout) {
		this.userAccout = userAccout;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}


	public String[] getRoles() {
		return roles;
	}

	public void setRoles(String[] roles) {
		this.roles = roles;
	}

	
	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserIDNumber() {
		return userIDNumber;
	}

	public void setUserIDNumber(String userIDNumber) {
		this.userIDNumber = userIDNumber;
	}

	public String getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	@Override
	public String toString() {
		return "User [userName=" + userName + ", userAccout=" + userAccout
				+ ", userPassword=" + userPassword + ", userPhone=" + userPhone
				+ ", userIDNumber=" + userIDNumber + ", userStatus="
				+ userStatus + ", roles=" + Arrays.toString(roles) + "]";
	}

}
